<?php
	$str = "<div id='SL'>
			  <a id='image_cart'><img src='resources/home/images/SLcat.png'/></a>
			  <div style='clear:both;'></div>
			  <div>
				  <div id='image_top_cart'><img onclick='check_cart();' id='img_top_cart' src='resources/home/images/btn_close_window_hover.png' /></div>
				  <div id='SL_content'>
					  <div class='image_phone'></div>
					  <div id='sl_content_change'>
					  	<ul id='listsosanh'>";
						
	$k = 0;
	foreach($this->cart->contents() as $row)
	{
		$k = 1;
		
		$maks = $row['id'];
		$tenks = $row['name'];
		$tenks_sub = substr($row['name'], 0, 17) . '...';
		$rowid = $row['rowid'];
				
		$str = $str . "<li id='$rowid'>+ <a href='index.php/datphong/khachsan/$maks' id='$maks' title='$tenks'>$tenks_sub</a></li>";
	}					
												
	$str = $str . "</ul></div>
					  <a style='color:white;'  href='index.php/sosanh/SoSanhKhachSan'><div id='buttom_compare'>So sánh</div></a>	
				  </div>
			  </div>
		  </div>";
		  
	if($k == 1)
		echo $str;
?>